package com.song.colud.feignHystrixOrder.config;

import com.song.colud.feignHystrixOrder.config.Impl.feignConfigImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author ZhangGuisong
 * @Date 2021/2/21-11:47
 */
@FeignClient(value = "CLOUD-HYSTRIX-PAYMENT8001-SERVICE",fallback = feignConfigImpl.class)

public interface feignConfig {
    @GetMapping("/hystrix/payment/ok/{id}")
    public String getOk(@PathVariable("id") Integer id);

    @GetMapping("/hystrix/payment/getError/{id}")
    public String Error(@PathVariable("id") Integer id);

}
